package Watch;

import java.util.Date;


/*
 * Class for changing of file storing
 * All the changes: Created, Deleted, Modified, Renamed implements this
 * class. While the common is the string with path
 */
public class DirDataChanges
{
	public String path = "";
	public String change = "";
	public Date dateModify = null;
	public String newPath = "";
	
	//for renaming
	public DirDataChanges(String oldPath, String changeStr, String newPathStr)
	{
		//initialize the name
		path = new String(oldPath);
		change = new String(changeStr);
		newPath = new String(newPathStr);
	}
	
	//for deleting/creating
	public DirDataChanges(String oldPath, String changeStr)
	{
		//initialize the name
		path = new String(oldPath);
		change = new String(changeStr);
	}
	
	//for modifying
	public DirDataChanges(String oldPath, String changeStr, Date dateM)
	{
		//initialize the name
		path = new String(oldPath);
		change = new String(changeStr);
		dateModify = dateM;
	}

	public String getPath() {
		return path;
	}

	public String getChange() {
		return change;
	}

	public Date getDateModify() {
		return dateModify;
	}

	public String getNewPath() {
		return newPath;
	}
	
}
